package service.wechatlab;

import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;
import java.util.List;
import java.util.Set;

import javax.servlet.http.HttpServletRequest;

import pojo.ResCode;
import pojo.jane.StudentBean;
import pojo.weichatlab.Label;
import pojo.weichatlab.Wechat;

public interface LableSystemService {
	int addUserService(StudentBean st) throws NoSuchAlgorithmException, UnsupportedEncodingException;
	List<StudentBean> selectStudent(String userid);
	String getSimilar();
	List<Wechat> getText(HttpServletRequest request);  //选择待标注文本
	String setAvailableLable(Label label);  //设置标签，此项是设置所有文本可选的类标，不是给具体某个文本打标签
	ResCode updateTextLable(HttpServletRequest request);  //为文本添加标签，此项是为某个文本添加标签
	String getIpAddress(HttpServletRequest request); //获得用户IP
	List<Integer> selectAuthgroupid(int authgroup);  //获得用户可用操作
	List<String> selectOperation(int authid); //获得用户可执行操作
	Set<String> authInfoMap(String userid); //获取权限信息
	boolean isExistUser(StudentBean st) throws NoSuchAlgorithmException, UnsupportedEncodingException;
	boolean isLegal(String userid);
}
